package com.project.bean;

import java.time.LocalDate;

public class FacilityBean {
    //    id
    private Integer id;
    //    问题描述
    private String describe;
    //    损坏时间
    private LocalDate brokenDate = LocalDate.now();
    //    是否解决
    private String over = "未解决";
    //    房间
    private RoomBean roomBean;

    public FacilityBean() {
    }

    public FacilityBean(String describe, Integer roomBean) {
        this.describe = describe;
        this.roomBean =new RoomBean();
        this.roomBean.setId(roomBean);
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public LocalDate getBrokenDate() {
        return brokenDate;
    }

    public void setBrokenDate(LocalDate brokenDate) {
        this.brokenDate = brokenDate;
    }

    public String getOver() {
        return over;
    }

    public void setOver(String over) {
        this.over = over;
    }

    public RoomBean getRoomBean() {
        return roomBean;
    }

    public void setRoomBean(RoomBean roomBean) {
        this.roomBean = roomBean;
    }

    @Override
    public String toString() {
        return "FacilityBean{" +
                "id=" + id +
                ", describe='" + describe + '\'' +
                ", brokenDate=" + brokenDate +
                ", over='" + over + '\'' +
                ", roomBean=" + roomBean +
                '}' + "\n";
    }
}
